package com.bj58.mis.apm.server.logreceiver.service.impl;

import com.bj58.mis.apm.server.logreceiver.model.HttpAccessLog;
import com.bj58.mis.apm.server.logreceiver.repository.HttpAccessLogRepository;
import com.bj58.mis.apm.server.logreceiver.service.HttpAccessLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

/**
 * @author: zhangfx
 * @create: 2018-06-08 17:29
 **/
@Service
@Transactional
public class HttpAccessLogServiceImpl implements HttpAccessLogService {

    @Autowired
    private HttpAccessLogRepository repository;

    @Override
    public void receive(HttpAccessLog log) {
        repository.save(log);
    }
}
